import { http } from "@/utils/request.js"


// 查询问诊订单详情信息 
// 问诊的订单状态1待支付2待接诊3咨询中4已完成5已取消/
// 药品订单10待支付11待发货12待收货13已完成14已取消
export const doctOrderAPI=(orderId)=>{
	return http.get('/patient/consult/order/detail',{params:{orderId}})
}


// 评价医生接口
export const retaDoctorAPI=(data)=>{
	return http.post('/patient/order/evaluate',data)
}


/**
 *  查询收货地址列表
 */
export const getressListAPI=()=>{
	return http.get(`/patient/order/address`)
}


/**
 * 药品预付订单
 */
export const preOrderAPI = (prescriptionId) => {
  return http.get('/patient/medicine/order/pre', { params: { prescriptionId } })
}

/**
 * 药品待支付订单
 */

export const createOrderAPI=(data)=>{
	return http.post('/patient/medicine/order',data)
}

// 药品订单-查询订单详情
export const showOrderAPI=(id)=>{
	return http.get(`/patient/medicine/order/detail/${id}`)
}


/**
 * 药品订单列表
 */
export const orderListAPI = (status=10 , current , pageSize) => {
  return http.get('/patient/medicine/order/mylist', {
    params: { status, current, pageSize },
  })
}


/**
 * 医生问诊列表
 */
export const doctorderListAPI = (data) => {
  return http.get('/patient/consult/order/list', { params: data })
}